package shuai.service;

import org.apache.ibatis.session.SqlSession;

import shuai.dao.UserDao;
import shuai.entity.User;
import shuai.util.SqlSessionFactoryUtil;

public class UserService {
	SqlSession sqlSession=null;
	public User login(String username,String userpwd){
		sqlSession=SqlSessionFactoryUtil.getSqlSession();
		UserDao userDao=sqlSession.getMapper(UserDao.class);
		User user =userDao.login(username, userpwd);
		return user;
	}
}
